import 'package:flutter/material.dart';
import 'package:flutterapp/LoginWidget.dart';
import 'package:flutterapp/util/SpUtil.dart';

import 'BottomNavigationWiget.dart';

void main() => realRunApp();

void realRunApp() async{
  ///使用第三方控件初始化之前 初始化
  WidgetsFlutterBinding.ensureInitialized();
  await SpUtil.getInstance();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner:false,
      home: BottomNavigationWidget(),
    );
  }
}

